import {PluginCommand} from "./PluginCommand";

class MassAttributeCommand extends PluginCommand{
  constructor() {
    super();
  }

  // 根据参数计算质量属性数据信息
  getMassAttributeInfo(attributeParams,cb){
    if (this.toolQuery) {
      this.toolQuery.getMassAttributeInfo(attributeParams).then(retValue => {
        cb(retValue.data.attributeInfos);
      })
    }
  }

  massCoverConfirm(massCoverParams){
    if (this.toolQuery) {
      this.toolQuery.massCoverConfirm(massCoverParams).then();
    }
  }

  // 覆盖质量
  massCoverReSet(massCoverParams){
    if (this.toolQuery) {
      this.toolQuery.massCoverReset(massCoverParams).then();
    }
  }


}

const massAttributeCommand = new MassAttributeCommand();
export {massAttributeCommand};
